import request from '@/utils/request'

// 查询省市县列表
export function listManage_area(query) {
  return request({
    url: '/manage/manage_area/list',
    method: 'get',
    params: query
  })
}

// 查询省市县详细
export function getManage_area(areaId) {
  return request({
    url: '/manage/manage_area/' + areaId,
    method: 'get'
  })
}

// 新增省市县
export function addManage_area(data) {
  return request({
    url: '/manage/manage_area',
    method: 'post',
    data: data
  })
}

// 修改省市县
export function updateManage_area(data) {
  return request({
    url: '/manage/manage_area',
    method: 'put',
    data: data
  })
}

// 删除省市县
export function delManage_area(areaId) {
  return request({
    url: '/manage/manage_area/' + areaId,
    method: 'delete'
  })
}
